home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / smileydg / smileydg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.0 KB  |  73 lines

  1. // SmileyDg.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1999 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. #include "stdafx.h"
  15. #include "SmileyDg.h"
  16. #include "SmileDlg.h"
  17.  
  18. #ifdef _DEBUG
  19. #define new DEBUG_NEW
  20. #undef THIS_FILE
  21. static char THIS_FILE[] = __FILE__;
  22. #endif
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CSmileyApp
  26.  
  27. BEGIN_MESSAGE_MAP(CSmileyApp, CWinApp)
  28.     //{{AFX_MSG_MAP(CSmileyApp)
  29.         // NOTE - the ClassWizard will add and remove mapping macros here.
  30.         //    DO NOT EDIT what you see in these blocks of generated code!
  31.     //}}AFX_MSG
  32.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  33. END_MESSAGE_MAP()
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CSmileyApp construction
  37.  
  38. CSmileyApp::CSmileyApp()
  39. {
  40. }
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43. // The one and only CSmileyApp object
  44.  
  45. CSmileyApp theApp;
  46.  
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CSmileyApp initialization
  49.  
  50. BOOL CSmileyApp::InitInstance()
  51. {
  52.     AfxEnableControlContainer();
  53.  
  54.     // Standard initialization
  55.     // If you are not using these features and wish to reduce the size
  56.     //  of your final executable, you should remove from the following
  57.     //  the specific initialization routines you do not need.
  58.  
  59.     CSmileyDlg dlg;
  60.     m_pMainWnd = &dlg;
  61.     int nResponse = dlg.DoModal();
  62.     if (nResponse == IDOK)
  63.     {
  64.     }
  65.     else if (nResponse == IDCANCEL)
  66.     {
  67.     }
  68.  
  69.     // Since the dialog has been closed, return FALSE so that we exit the
  70.     //  application, rather than start the application's message pump.
  71.     return FALSE;
  72. }
  73.